/*
*   Created by Standard Generator beta version.
*   Created Date Fri Jun 20 11:13:32 GMT+07:00 2003
*/

package com.epro.standard.usermenu;

import java.io.Serializable;

import java.sql.Timestamp;

import java.util.Hashtable;

import com.epro.standard.infrastructure.root.StdDescriptor;
import com.epro.standard.infrastructure.root.StdEntity;

public class RoleEntity extends StdEntity implements Serializable {
    private String roleID;
    private String roleName;
    private String roleDesc;
    private String active;
    private String updBy;
    private Timestamp updDate;
    private String credBy;
    private Timestamp credDate;

    public RoleEntity() {
    }

    public RoleEntity(String roleID) {
        this.roleID = roleID;
    }

    public Hashtable getHashtable() {
        Hashtable h = new Hashtable();
        h.put("ROLE_ID", String.valueOf(this.roleID));
        h.put("ROLE_NAME", String.valueOf(this.roleName));
        h.put("ROLE_DESC", String.valueOf(this.roleDesc));
        h.put("ACTIVE", String.valueOf(this.active));
        h.put("UPD_BY", String.valueOf(this.updBy));
        h.put("UPD_DATE", this.updDate != null ? ((Object)updDate) : "null");
        return h;
    }

    public StdDescriptor getDescriptor() {
        return new RoleDescriptor();
    }

    public String getRoleID() {
        return roleID;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleDesc() {
        return roleDesc;
    }

    public void setRoleDesc(String roleDesc) {
        this.roleDesc = roleDesc;
    }

    public String getActive() {
        return active;
    }

    public void setActive(String active) {
        this.active = active;
    }

    public String getUpdBy() {
        return updBy;
    }

    public void setUpdBy(String updBy) {
        this.updBy = updBy;
    }

    public Timestamp getUpdDate() {
        return updDate;
    }

    public void setUpdDate(Timestamp updDate) {
        this.updDate = updDate;
    }

    /**
     * @return
     */
    public String getCredBy() {
        return credBy;
    }

    /**
     * @return
     */
    public Timestamp getCredDate() {
        return credDate;
    }

    /**
     * @param string
     */
    public void setCredBy(String string) {
        credBy = string;
    }

    /**
     * @param timestamp
     */
    public void setCredDate(Timestamp timestamp) {
        credDate = timestamp;
    }

}
